package com.huiruan.service;

import cn.hutool.core.lang.tree.Tree;
import com.huiruan.entity.SysMenu;
import com.baomidou.mybatisplus.extension.service.IService;
import com.huiruan.utils.Result;

import java.util.Collection;
import java.util.List;

/**
* @author CTL
* @description 针对表【sys_menu(菜单权限表)】的数据库操作Service
* @createDate 2025-07-15 21:25:02
*/
public interface SysMenuService extends IService<SysMenu> {

    List<SysMenu> findMenuByRoleId(Object roleId);

    Result removeMenuById(Long id);

    Boolean updateMenuById(SysMenu sysMenu);

    List<Tree<Long>>  getMenuTree(Long parentId, String menuName, String type);
}
